package com.fang.networkdisk.controller;

import com.fang.common.common.CommonResult;
import com.fang.common.util.CommonResultUtil;
import com.fang.networkdisk.entity.vo.AdminUserVo;
import com.fang.networkdisk.service.CommonService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @Author Bernie_fang
 * @Date 2025/4/25 21:49
 **/
@RestController
@RequestMapping("/system/common")
public class CommonController {

    @Resource
    private CommonService commonService;

    @GetMapping("/user/admin")
    public CommonResult<List<AdminUserVo>> queryAdminUser() {
        List<AdminUserVo> adminUserVos = commonService.queryAdminUser();
        return CommonResultUtil.success(adminUserVos);
    }

}
